Enable pump heartbeat if needed when adding a pump#2058
Conversation
|
Test Scenario: iPhone SE (iOS 16.6) add Dexcom Share as CGM and Pump Simulator:
Added note: this test was valid. Performed with my SE test phone - there were no future glucose values in Health for this test. |
|
This change only affects the situation described in the issue: add CGM, then pump, and no reboot, or even no loop-background to foreground. It only works with a BLE pump. And only with a ble pump with regular BLE events. There was an issue where we weren't enabling pump BLE heartbeats when the pump was added after the CGM. That's what this fixes. |
|
@marionbarker I'm not sure if your test is testing the same problem you described in the ticket, as the test report doesn't say anything about adding devices in a particular order. If you're having general issues with a lack of heartbeat, that would be a separate issue that we'd need to look into. |
|
Latest LoopWorkspace (22 Sep 2023), commit ea23351.
If you want a different test - happy to provide one - let me know the desired configuration. |
|
This fix, like the situation described in #1854, is a fix for having a non-ble CGM, and then adding a BLE pump that supports a heartbeat. To test it, you will need to make and install a loop version with the fix, and then add the pump. |
|
The test for this would be:
|
|
I will be happy to test when I return home in a few days. |
|
Summary: Tested in the order specified by Pete. Results: This fix makes the app behave correctly when non-heartbeat Dexcom Share CGM is added before heartbeat pump.
Test DetailsFirst reproduce the problem, then test the fix:
|
May fix #1854